package com.jxk.springcloud.alibaba.service;

import com.jxk.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName : StorageService  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-29 15:32  //时间
 */

@FeignClient(value = "seata-storage-service")
public interface StorageService{
    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
 